﻿@using Microsoft.AspNet.Identity
@if (Request.IsAuthenticated)
{
    <ul>
        <li>@Html.ActionLink("Hi " + User.Identity.GetUserName() + "!", "Index", "Manage", routeValues: null, htmlAttributes: new { title = "Manage" })</li>
        <li><a href="@Href("~/Calendar/")" title="Notifications"><i class="fa fa-bell-o"></i></a></li>
        <li><a href="@Href("~/Calendar/")" title="Task List"><i class="fa fa-check-square-o"></i></a></li>
        <li><a href="@Href("~/Calendar/")" title="My Calendar"><i class="fa fa-calendar-o"></i></a></li>
        <li><a href="@Href("~/Calendar/")" title="My Profile"><i class="fa fa-user"></i></a></li>
        @if (User.IsInRole("AppAdmin"))
        {
            <li><a href="@Href("~/AppAdmin/")" title="App Admin Control Panel"><i class="fa fa-magic"></i></a></li>
        }
        <li><a href="@Href("~/Account/LogOff")" title="Log Off"><i class="fa fa-sign-out"></i></a></li>
    </ul>
}
else
{
    <ul>
        <li><a href="@Href("~/Account/Login/")"><i class="fa fa-sign-in"></i>Login</a></li>
    </ul>
 
}
